/* 
 * File:   Exceptions.h
 * Author: nexx
 *
 * Created on 9 Май 2012 г., 14:11
 */

#pragma once

#include <exception>

class ProcessingException : public std::exception
{
public:
    ProcessingException(std::string text) : m_text(text)
    {};

    ~ProcessingException() throw() {};
    
    const char* what() const throw() {return m_text.c_str();};
private:
    std::string m_text;
};

class CalibrationException : public std::exception
{
public:
    CalibrationException(std::string text) : m_text(text)
    {};

    ~CalibrationException() throw() {};

    const char* what() const throw() {return m_text.c_str();};
private:
    std::string m_text;
};

